package com.pz.gulimall.common.to;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class UserInfoTo {

    // ums_member
    private Long id;
    private Long levelId;
    private String username;
    private String password;
    private String nickname;
    private String mobile;
    private String email;
    private String header;
    private Integer gender;
    private Date birth;
    private String city;
    private String job;
    private String sign;
    private Integer sourceType;
    private Integer integration;
    private Integer growth;
    private Integer status;
    private Date createTime;

    List<ReceiveAddress> receiveAddresses;

    // 静态数据
    private Long memberId;
    private BigDecimal consumeAmount;
    private BigDecimal couponAmount;
    private Integer orderCount;
    private Integer couponCount;
    private Integer commentCount;
    private Integer returnOrderCount;
    private Integer loginCount;
    private Integer attendCount;
    private Integer fansCount;
    private Integer collectProductCount;
    private Integer collectSubjectCount;
    private Integer collectCommentCount;
    private Integer inviteFriendCount;

    @Data
    @ToString
    public static class ReceiveAddress{
        private Long id;
        private Long memberId;
        private String name;
        private String phone;
        private String postCode;
        private String province;
        private String city;
        private String region;
        private String detailAddress;
        private String areacode;
        private Integer defaultStatus;
    }
}
